package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.BarCode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReplaceMapper extends BaseMapper<BarCode> {

    BarCode queryNum(@Param("oldCode") String oldCode);

    int queryTodayNum();

    List<BarCode> randomPrint();

}
